
from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from models import ActiveUser

class DisConnected(webapp.RequestHandler):
    def post(self):
        client_id=self.request.get('from')
        query=ActiveUser.all()
        query.filter('user =', user)
        f=query.get()
        ActiveUser.delete(f.key)


def main():
    app=webapp.WSGIApplication([('/_ah/channel/disconnected', DisConnected)], debug=True)
    run_wsgi_app(app)

if __name__=='__main__':
    main()
